package com.qyhl.shop.shop.rush;


import com.qyhl.webtv.commonlib.entity.shop.ShopRushListBean;

import java.util.List;

public class ShopRushPurchasePresenter implements ShopRushPurchaseContract.ShopRushPurchasePresenter {
    private ShopRushPurchaseContract.ShopRushPurchaseView mView;
    private ShopRushPurchaseModel mModel;

    public ShopRushPurchasePresenter(ShopRushPurchaseContract.ShopRushPurchaseView mView) {
        this.mView = mView;
        this.mModel = new ShopRushPurchaseModel(this);
    }

    @Override
    public void getListByShop(int shopId, int page) {
        mModel.getListByShop(shopId, page);
    }

    @Override
    public void getListBySite(int page) {
        mModel.getListBySite(page);
    }

    @Override
    public void setList(List<ShopRushListBean> beanList) {
        mView.setList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
